using System;
using System.Diagnostics;

namespace octalforty.Componento.Core.ObjectModel
{
    [DebuggerDisplay("{Name,nq}")]
    public class PackageReference
    {
        public string Name
        { get; private set; }

        public VersionRequirement Version
        { get; private set; }

        public Uri Uri
        { get; private set; }

        public PackageReference(string name, VersionRequirement version) :
            this(name, version, null)
        {
        }

        public PackageReference(string name, VersionRequirement version, Uri uri)
        {
            Name = name;
            Version = version;
            Uri = uri;
        }
    }
}